/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package fusiondata;

import java.sql.DriverManager;
import java.sql.SQLException;

/**
 *
 * @author Administrator
 */
public class UseAccess extends DataFromDB{
    private String filePath;
    private final static String DBDRIVER = "sun.jdbc.odbc.JdbcOdbcDriver";
    private final static String DBURL = "jdbc:odbc:driver={Microsoft Access Driver (*.mdb)};DBQ=";

    public UseAccess(String filePath) {
        this.filePath = filePath;
        try
        {
            Class.forName(DBDRIVER);
            conn = DriverManager.getConnection(DBURL+ filePath);
        }
        catch(ClassNotFoundException ce)
        {
            ce.printStackTrace();
        }
        catch(SQLException se)
        {
            se.printStackTrace();
        }
    }
    

}
